<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增代码覆盖率服务')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-report-add">
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">仓库地址：</label>
                    <div class="col-sm-8">
                        <input name="repositoryUrl" class="form-control" type="text">
                    </div>
                </div>  
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">起始版本：</label>
                    <div class="col-sm-8">
                        <input name="versionStart" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">当前版本：</label>
                    <div class="col-sm-8">
                        <input name="versionNow" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">exec文件路径：</label>
                    <div class="col-sm-8">
                        <input name="exec" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">report文件夹路径：</label>
                    <div class="col-sm-8">
                        <input name="reportDir" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">指令覆盖率：</label>
                    <div class="col-sm-8">
                        <input name="instructionCounter" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">分支覆盖率：</label>
                    <div class="col-sm-8">
                        <input name="branchCounter" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">行覆盖率：</label>
                    <div class="col-sm-8">
                        <input name="lineCounter" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">类覆盖率：</label>
                    <div class="col-sm-8">
                        <input name="classCounter" class="form-control" type="text">
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "server/report"
        $("#form-report-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-report-add').serialize());
            }
        }
    </script>
</body>
</html>